home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / oath.lha / oath / test / pdl2a.cc < prev    next >
C/C++ Source or Header  |  1991-08-29  |  809b  |  33 lines

  1. #include "oath/pdlQueue.h"
  2.  
  3. #include "oath/character.h"
  4.  
  5. #include <fstream.h>
  6.  
  7. /////////////////////////////////////////////////////////////////////////////
  8. // Test of pdlQueues and putCopy()/getCopy()
  9.  
  10. main ()
  11.    {// Predefine Four Characters //////////
  12.     characterA A = characterA::make('A');
  13.     characterA B = characterA::make('B');
  14.     characterA C = characterA::make('C');
  15.     characterA D = characterA::make('D');
  16.  
  17.     cout << A << B << C << D << endl;
  18.  
  19.     // Construct the Three Lists //////////
  20.     pdlQueueA L1 = pdlQueueA::make() << A << B << C;
  21.     pdlQueueA L2 = pdlQueueA::make() << A << B << C;
  22.     pdlQueueA L3 = pdlQueueA::make(L2);
  23.  
  24.     // Save the Three Lists //////////
  25.     ofstream File ("pdl2.obj");
  26.  
  27.     L1.export(File);
  28.     L2.export(File);
  29.     L3.export(File);
  30.  
  31.     return 0;
  32.    }
  33.